package demo3;
public class Test {
    public static void main(String[] args) {
        Derived derived = new Derived();
        // 通过 derived 怎么访问父类的a
        // 对父类的a进行修改
        derived.setBaseA(5);
        System.out.println("父类的a: " + derived.getBaseA());
        System.out.println("子类的a: " + derived.a);

    }

    public static void main1(String[] args) {
        Derived derived = new Derived();
        derived.method();

    }
}
